package com.example.prop;

/**
 * @author yu
 */
public interface EventDispatcher {

    /**
     * 注册
     *
     * @param object
     */
    void register(Object object);

    /**
     * 卸载
     *
     * @param object
     */
    void unregister(Object object);

    /**
     * 投递
     *
     * @param event
     */
    void post(Object event);

    /**
     * 注册
     *
     * @param object
     */
    void registerAsync(Object object);

    /**
     * 卸载
     *
     * @param object
     */
    void unregisterAsync(Object object);

    /**
     * 投递
     *
     * @param event
     */
    void postAsync(Object event);
}
